<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/metinfo.css" />
</head>
<body>
<script type="text/javascript" src="../js/jQuery1.7.2.js"></script>
<script type="text/javascript" src="../js/cookie.js"></script>
<script type="text/javascript">

function kzqie(my){
	if(my.text()=='宽版'){
		$('#metcmsbox').css('width','100%');
		$.ajax({url : 'include/config.php?lang=cn&met_kzqie=1',type: "POST"});
		my.attr('title','切换到窄版');
		my.text('窄版');
	}else{
		$('#metcmsbox').css('width','1000px');
		$.ajax({url : 'include/config.php?lang=cn&met_kzqie=0',type: "POST"});
		my.attr('title','宽版');
		my.text('宽版');
	}
}
</script>




<div class="metinfotop"></div>
<div class="clear"></div>


<div class="stat_list">
<ul id="stepnav">
	<li class="now"><a id="nav_1" href="javascript:;" title="基本信息">基本信息</a></li>
</ul>
</div>
<div><?php
if(!empty($_GET['error'])){
	echo '<div style="color:red;font-size:15px;margin-left:10px;">'.$_GET['error'].'</div>';
}

?></div>

<?php


//加载配置文件
include '../config.php';
$link = mysql_connect(HOST,DBUSER,DBPASS) or die('连接失败亲');
mysql_select_db(DBNAME,$link);
mysql_set_charset('utf8');
$sql = "SELECT * FROM t_plan WHERE id=".$_GET['id'];
$result = mysql_query($sql);
$rows = mysql_fetch_assoc($result);
?>
<form method="post" name="myform" action="planSreachAction.php"
	target="_self">

<div id="div_1" style="display: block;">
<table cellpadding="2" cellspacing="1" class="table">
	<tr>
		<td style="font-size: 18px; color: #1f75b7;">&nbsp&nbsp&nbsp&nbsp添加旅游行程:</td>
	</tr>
	<tr>
		<td id="error_1" style="font-size: 15px; color: red;"></td>
	</tr>
	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">标题：</div>
		</td>
		<td class="input"><input id="title" name="title" type="text"
			class="text" value="<?php echo $rows['title']?>" />*</td>

		<td>
		<div style="margin-left: 30px; font-size: 15px;">交通工具：</div>
		</td>
		<td class="input"><input id="vehicle" name="vehicle" type="text"
			class="text" value="<?php echo $rows['vehicle']?>" />*</td>

	</tr>
	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">出发地：</div>
		</td>
		<td class="input"><input id="startingPoint" name="startingPoint"
			type="text" class="text" value="<?php echo $rows['startingpoint']?>" />*</td>

		<td>
		<div style="margin-left: 30px; font-size: 15px;">旅游天数：</div>
		</td>
		<td class="input"><input id="days" name="days" type="text"
			class="text" value="<?php echo $rows['days']?>" />*</td>

	</tr>

	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">价格：</div>
		</td>
		<td class="input"><input id="price" name="price" type="text"
			class="text" value="<?php echo $rows['price']?>" />*</td>


		<td></td>
		<td></td>


	</tr>
	
</table>

<table cellpadding="2" cellspacing="1" class="table">
	<tr>
		<td style="font-size: 18px; color: #1f75b7; text-align: left;"
			colspan="2">&nbsp添加旅游行程文本内容:</td>
	</tr>
	<tr>
		<td id="error_2" style="font-size: 15px; color: red;"></td>
	</tr>

	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">线路简介：</div>
		</td>
		<td><input type="text" name="introduce"
			style="width: 800px; height: 120px;"
			value="<?php echo $rows['introduce']?>" /></td>

	</tr>

	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">行程安排：</div>
		</td>
		<td><input type="text" name="schedule"
			style="width: 800px; height: 120px;"
			value="<?php echo $rows['schedule']?>" /></td>

	</tr>
	<tr>
		<td>
		<div style="margin-left: 30px; font-size: 15px;">温馨提示：</div>
		</td>
		<td><input type="text" name="hint"
			style="width: 800px; height: 120px;"
			value="<?php echo $rows['hint']?>" /></td>

	</tr>
	<tr>
		<td class="text"></td>
	</tr>
	<tr>
		<input type="hidden"  name="id"  value="<?php echo $_GET['id']?>">
		<td class="submit"><input type="submit" name="submit" value="更新数据库" class="submit" /></td>
	</tr>
</table>

</div>
</form>
<script type="text/javascript" src="../js/metinfo.js"></script>
<script type="text/javascript" src="../js/planAdd.js"></script>
</body>

</html>
